package com.subject.shuati.domain.covert;

import com.subject.shuati.domain.entity.SubjectLabelBo;
import com.subject.shuati.infra.basic.entity.SubjectLabel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 实体类与Bo之间的转换
 */
@Mapper
public interface SubjectLabelConverter {

    SubjectLabelConverter INSTANCE = Mappers.getMapper(SubjectLabelConverter.class);

    /**
     * BO转实体类
     * @param subjectLabelBo
     * @return
     */
    SubjectLabel converterToLabelBo(SubjectLabelBo subjectLabelBo);

    /**
     * BO集合转实体类集合
     * @param subjectLabelList
     * @return
     */
    List<SubjectLabelBo> converterToLabelBoList(List<SubjectLabel> subjectLabelList);
}
